
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta content="no-cache,must-revalidate" http-equiv="Cache-Control">
<meta name="viewport" content="width=device-width,height=device-height,inital-scale=1.0,maximum-scale=1.0,user-scalable=no;">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="format-detection" content="telephone=no">
<title>{$title}</title>
<link href="/addons/wdl_anhao/template/css/style.css" rel="stylesheet" type="text/css" />
<script src="/addons/wdl_anhao/template/js/jquery.min.js"></script>
<script>
$(function () {
    $("button").click(function () {
        $("#bg").css({
            display: "block", height: $(document).height()
        });
        var $box = $('.box');
        $box.css({
            //设置弹出层距离左边的位置
            right: "10%",
            //设置弹出层距离上面的位置
            top: "5%",
            display: "block"
        });
    });
    //点击关闭按钮的时候，遮罩层关闭
    $(".close").click(function () {
        $("#bg,.box").css("display", "none");
    });
});
</script>

</head>
<body style="background-color:#0cbb84;">
<div class="win">
 <div class="header">
  <p class="s4">分享赢取更多礼品</p>
  <img src="/addons/wdl_anhao/template/images/1.png" width="20%" height="70" /></div>
  <div class="win1">已成功邀请：<span style="font-size:20px; color:#F00">{if $ewairenshuyqoqing==''}0{else}{$ewairenshuyqoqing}{/if}</span>人</div>
  <div class="win2">获额外参与：<span style="font-size:20px; color:#F00">{if $ewairenshuyqoqing==''}0{else}{$ewairenshuyqoqing}{/if}</span>次</div>
  <div class="win3">最多可获得：<span style="font-size:20px; color:#F00">{$ewanmax['max']}</span>次</div>
  <div class="win4">
		<h2>分享说明</h2>
		<p>1、点击下方按钮“分享给好友”，然后点击右上方“发送给朋友”，朋友点击获取的链接方可生效
		<br>2、每成功邀请一个好友获得一次“额外参与资格”
		<br>3、获得资格后再次发送暗号来获得新的编号，允许用户多个编号同时中奖
		</p>
  </div>
  <button style="background-color:#090;"><a href="javascript:void(0);">分享给好友</a></button>
  
<div id="bg"></div>
<div class="box" style="display:none">
    <h2><a href="#" class="close">X</a></h2>
    <img style="float:right; margin-top:-25px;" src="/addons/wdl_anhao/template/images/jt.png" width="50" height="23" />
    <p>请点击右上角<br>选择"发送给朋友"<br>然后点击"发送"</p>
  <img src="/addons/wdl_anhao/template/images/share.jpg" width="120" height="120" /> </div>
<br>
<br>
<br>
<br>
<br>
<br>
  </div>


</body>


<script>var require = { urlArgs: 'v={php echo date('YmdH');}' };</script>
	<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
	<script src="{$_W['siteroot']}app/resource/js/require.js"></script>
	<script src="{$_W['siteroot']}app/resource/js/app/config.js"></script>
	<script type="text/javascript">
	// jssdk config 对象
	jssdkconfig = {php echo json_encode($_W['account']['jssdkconfig']);} || {};
	// 是否启用调试
	jssdkconfig.debug = false;
	
	jssdkconfig.jsApiList = [
		'checkJsApi',
		'onMenuShareTimeline',
		'onMenuShareAppMessage',
		'onMenuShareQQ',
		'onMenuShareWeibo',
		'showOptionMenu',
		'closeWindow'
	];

	wx.config(jssdkconfig);
	require(['jquery', 'util'], function($, util){
		var sharedata = {
	        "imgUrl" : "{$shareimg}",
	        "link" : "{$share}",
	        "desc" : "{$title}",
	        "title" : "{$title}"
	    };		
		
		wx.ready(function () {
			wx.showOptionMenu();
			wx.onMenuShareAppMessage(sharedata);
			wx.onMenuShareTimeline(sharedata);
			wx.onMenuShareQQ(sharedata);
			wx.onMenuShareWeibo(sharedata);
			document.querySelector('#closeWindow').onclick = function () {
                wx.closeWindow();
            };
		});		
	});
	</script>

</html>


